package com.dk.ws.bean;

import java.sql.Timestamp;

public class Message {

    private String sourceId;
    private String message;
    private Timestamp time;
    private int who;

    public Message(){}

    public Message(String sourceId, String message, Timestamp time, int who) {
        this.sourceId = sourceId;
        this.message = message;
        this.time = time;
        this.who = who;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public int getWho() {
        return who;
    }

    public void setWho(int who) {
        this.who = who;
    }
}
